package com.lh1010.s2.service.impl;

import com.lh1010.s2.mapper.ArticleMapper;
import com.lh1010.s2.pojo.Article;
import com.lh1010.s2.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ArticleServiceImpl implements ArticleService {

    @Autowired
    private ArticleMapper articleMapper;

    @Override
    public Article getArticle(Integer id) {
        return articleMapper.getArticle(id);
    }
}
